package class10;

/**
 * https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/
 * 找出字符串中第一个匹配项的下标
 */
public class Code05_StrIndex {
    public static void main(String[] args) {
        String str = "12345678abcd";
        int i = str.indexOf("3");
        System.out.println("i = " + i);
    }

}
